package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 土地资源承包表
 * @author limbray.li
 * @date 2021/7/15
 */
@Data
@TableName("contract_land")
public class LandContract extends Model<LandContract> {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0",delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty("承包人id")
	private Long villagerId;
	@ApiModelProperty("生产队id")
	private Long teamId;
	@ApiModelProperty("年份")
	private Integer year;
	@ApiModelProperty("公益林地块/农户承包面积（亩）")
	private BigDecimal area;
	@ApiModelProperty("现金支付-面积（亩）")
	private BigDecimal areaCash;
	@ApiModelProperty("现金支付（元）")
	private BigDecimal cash;
	@ApiModelProperty("产物支付-面积（亩）")
	private BigDecimal areaGrain;
	@ApiModelProperty("实物支付-粮食（公斤）")
	private BigDecimal grain;
	@ApiModelProperty("备注")
	private String remark;
}
